package com.lin.service.impl;

import com.lin.vo.LoginVO;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.lin.mapper.UsersMapper;
import com.lin.entity.Users;
import com.lin.service.UsersService;
@Service
public class UsersServiceImpl implements UsersService{

    @Resource
    private UsersMapper usersMapper;

    @Override
    public int deleteByPrimaryKey(Integer userid) {
        return usersMapper.deleteByPrimaryKey(userid);
    }

    @Override
    public int insert(Users record) {
        return usersMapper.insert(record);
    }

    @Override
    public int insertSelective(Users record) {
        return usersMapper.insertSelective(record);
    }

    @Override
    public Users selectByPrimaryKey(Integer userid) {
        return usersMapper.selectByPrimaryKey(userid);
    }

    @Override
    public int updateByPrimaryKeySelective(Users record) {
        return usersMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Users record) {
        return usersMapper.updateByPrimaryKey(record);
    }

    @Override
    public Users selLogin(LoginVO loginVO) {
        return usersMapper.selLogin(loginVO);
    }

}
